package com.sybil.ot.servicio;

import com.sybil.ot.dao.ZonaDAO;
import com.sybil.ot.dominio.Zona;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("zonaService")
@Transactional(readOnly = true)
public class ZonaService {

   @Autowired
   private ZonaDAO zonaDAO;

   public List<Zona> obtenerZonas() {
      return zonaDAO.obtenerZonas();
   }

   public Zona obtenerZona(String clave) {
      return zonaDAO.obtenerZona(clave);
   }
}
